package shijian.gui.factory;

import javax.swing.*;

/**
 * @Description
 * @Author 25316
 * @Date 2024-09-07 22:46
 */
public class GUIGenerateUtils {

    public static JLabel generateJLabel(String text, int horizontalAlignment) {

        JLabel label = new JLabel(text + ":", horizontalAlignment);

        return label;

    }

    public static JTextField generateJTextField(int horizontalAlignment) {
        return new JTextField(horizontalAlignment);
    }

    public static JTextField generateJTextField(String text, int horizontalAlignment) {
        return new JTextField(text, horizontalAlignment);
    }

}
